import service from '@/utils/request'

const SosApi = {
  // ---------------紧急报警器----------------
  addSos: function (data) {
    return service.post('sos', data)
  },
  deleteSos: function (data) {
    return service.put('sos/delete', data)
  },
  editSos: function (data) {
    return service.put('sos', data)
  },
  listSos: function (data) {
    return service.get('sos/page', {params: data })
  },
  getSosInfo: function (data) {
    return service.get('sos', {params: data })
  },
}

export default SosApi
